package com.ruoyi.app.config.redis;//package com.smrc.im.server.config.redis;
//
//import org.redisson.Redisson;
//import org.redisson.api.RedissonClient;
//import org.redisson.config.Config;
//import org.redisson.config.SingleServerConfig;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class RedissonConfig {
//
//    @Bean(destroyMethod="shutdown")
//    public RedissonClient redisson() {
//        Config config = new Config();
//        SingleServerConfig singleServerConfig = config.useSingleServer();
//        singleServerConfig.setAddress("redis://127.0.0.1:6379");
//        singleServerConfig.setConnectionPoolSize(100);
//        singleServerConfig.setConnectionMinimumIdleSize(10);
//        singleServerConfig.setIdleConnectionTimeout(10000);
//        singleServerConfig.setConnectTimeout(10000);
//        singleServerConfig.setTimeout(3000);
//
//        return Redisson.create(config);
//    }
//
//}